package ua.epam.muzalevskiy.traction.commands;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ua.epam.muzalevskiy.traction.configuretion.PagePathConfigurer;

/**
 * <code>ViewNewVehiclePageCommand</code> class is the <code>Command</code> 
 * interface implementation, that realized <code>Command</code> pattern.
 * Current class encapsulate displaying page in which administrator can add
 * information about new vehicle.
 *
 * @author Muzalevskiy Vitaliy
 * @see Commang
 */
public class ViewNewVehiclePageCommand  implements Command {

    @Override
    public String execute(HttpServletRequest request, HttpServletResponse response) 
            throws ServletException, IOException {
        String page = PagePathConfigurer.getInstance()
                        .getProperty(PagePathConfigurer.NEW_VEHICLE_PAGE);
        return page;
    }
    
}
